package mybatis.mappers;

import models.entities.ShoppingCartItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCartMapper {
    void addProduct(@Param("productId") int id, @Param("userId") int userId, @Param("quantity") int quantity);

    List<ShoppingCartItem> getItems(@Param("userId") int userId);

    void delete(@Param("productId") int productId, @Param("userId") int userId);
}
